import { Component } from '@angular/core';
import { NzModalService } from 'ng-zorro-antd';

@Component({
  selector: 'app-exception-500',
  template: `
  <nz-result nzStatus="500" nzTitle="500" nzSubTitle="抱歉，服务器出错了">
    <div nz-result-extra>
      <button nz-button nzType="primary" [routerLink]="['/music/home']">返回首页</button>
    </div>
  </nz-result>`,
})
export class Exception500Component {
  constructor(modalSrv: NzModalService) {
    modalSrv.closeAll();
  }
}
